$(function() {
	var oTableLog = $('#table_log').dataTable( {
		"bJQueryUI": true,
		"sScrollX": "",
		"bSortClasses": false,
		"aaSorting": [[0,'desc']],
		"bAutoWidth": true,
		"bInfo": true,
		"sScrollY": "",	
		"sScrollX": "",
		"bScrollCollapse": true,
		"sPaginationType": "full_numbers",
		"bRetrieve": true,
		
		"bProcessing": true,
		"bServerSide": true,
		"sServerMethod": "POST",
		"sAjaxSource": "showLogDataTable",
	});	
	
	var oTableQuyen = $('#table_quyen').dataTable( {
		"bJQueryUI": true,
		"sScrollX": "",
		"bSortClasses": false,
		"aaSorting": [[0,'desc']],
		"bAutoWidth": true,
		"bInfo": true,
		"sScrollY": "",	
		"sScrollX": "",
		"bScrollCollapse": true,
		"sPaginationType": "full_numbers",
		"bRetrieve": true,
		
		"bProcessing": true,
		"bServerSide": true,
		"sServerMethod": "POST",
		"sAjaxSource": "showQuyenDataTable",
	});	
	
	var oTable = $('#table').dataTable();
	
	var animal = $('#imgAdmin').toggle(
			  function () {
				  $('#menu-controller').animate({
					  	left: "+=187px",
					    opacity: '1'
					  }, 1000)
			  },
			  function () {
				  $('#menu-controller').animate({
					  	left: "-=187px",
					    opacity: '1'
					  }, 1000)
			  }
		 );
});
